﻿<%@ Page Language="C#" MasterPageFile="~/MasterPageV2.master" AutoEventWireup="true"
    CodeFile="Anmeldelser.aspx.cs" Inherits="V2Anmeldelser" Title="Reviewer.dk - Anmeldelser"
    Async="true" %>

<%@ Register Src="V2Controls/Top10nyheder.ascx" TagName="Top10nyheder" TagPrefix="uc2" %>
<%@ Register Src="V2Controls/Top10Spil.ascx" TagName="Top10Spil" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table width="100%">
        <tr>
            <td width="600px" valign="top">
                <table cellpadding="0" cellspacing="0" border="0" width="100%" style="border: 1px solid black;">
                    <tr>
                        <td>
                            <div class="TD_red_Bar">
                                &nbsp;Sortering</div>
                            <div class="SubHeaderTD">
                                <asp:Repeater runat="server" ID="uiRepLetters" OnItemDataBound="uiRepLetters_ItemDataBound">
                                    <ItemTemplate>
                                        <asp:LinkButton runat="server" ID="uiLbLetter" OnClick="uiLbLetter_Click" CausesValidation="false"
                                            Text="<%# Container.DataItem.ToString() %>" EnableViewState="false" ToolTip="Filtrer efter spil der starter med bogstavet '{0}'" />
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <td class="SubHeaderTD">
                            <asp:Repeater runat="server" ID="uiRepFormats" EnableViewState="false" OnItemDataBound="uiRepFormats_ItemDataBound">
                                <ItemTemplate>
                                    <asp:LinkButton runat="server" ID="uiLbFormat" Text='<%# Eval("Name") %>' CommandArgument='<%# Eval("Id") %>'
                                        CausesValidation="false" ToolTip="Filtrer efter spil der er lavet til '{0}'"
                                        OnClick="uiLbFormat_Click" />
                                </ItemTemplate>
                                <SeparatorTemplate>
                                    &nbsp;|&nbsp;</SeparatorTemplate>
                            </asp:Repeater>
                            &nbsp;|&nbsp;<a href="Anmeldelser.aspx" title="Vis seneste anmeldelser">Seneste</a>
                        </td>
                    </tr>
                </table>
                <h1><asp:Literal ID="uiLblHeadline" runat="server" /></h1>
                <div>
                    <table width="100%" style="border-top: 1px solid #666666;">
                        <asp:Repeater runat="server" ID="uiRepResults" EnableViewState="false">
                            <ItemTemplate>
                                <tr>
                                    <td class="TDrowTwo">
                                        <a href='<%# global::UrlUtillity.GetReviewUri(Eval("GameFormatName").ToString(), Eval("GameTitle").ToString()) %>'>
                                            <%# Eval("GameTitle") %></a>
                                    </td>
                                    <td class="TDrowTwo">
                                        <%# Eval("GameFormatName") %>
                                    </td>
                                    <td class="TDrowTwo" align="right">
                                        <%# ((System.DateTime)Eval("LastModifiedDate")).ToLongDateString() %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                            <AlternatingItemTemplate>
                                <tr>
                                    <td>
                                        <a href='<%# global::UrlUtillity.GetReviewUri(Eval("GameFormatName").ToString(), Eval("GameTitle").ToString()) %>'>
                                            <%# Eval("GameTitle") %></a>
                                    </td>
                                    <td>
                                        <%# Eval("GameFormatName") %>
                                    </td>
                                    <td align="right">
                                        <%# ((System.DateTime)Eval("LastModifiedDate")).ToLongDateString()%>
                                    </td>
                                </tr>
                            </AlternatingItemTemplate>
                        </asp:Repeater>
                    </table>
                </div>
            </td>
            <td valign="top" width="200px">
                <uc2:Top10nyheder ID="Top10nyheder1" runat="server" />
                <uc1:Top10Spil ID="Top10Spil1" runat="server" />
            </td>
        </tr>
    </table>
</asp:Content>
